package EjemplosClasesComunes;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class ClaseFinDeFichero2 {
	public static void main(String[] args) {
		
		try {
			FileReader fr = new FileReader ("C:\\javaruben\\JSE_Modulo2\\src\\EjemplosMame2Nov\\ClaseJava.txt");
			int caract = fr.read();
			while( caract != -1){
				System.out.print(Character.valueOf((char) caract));
				caract = fr.read();
			}
			fr.close();
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} 
	}

}
